package com.developmentReformProject.enums;

/**
 * 用户状态枚举
 */
public enum AdminStateEnum {
    NORMAL_STATE(1,"正常"),
    RESIGNATION_STATE(0,"离职");

    private Integer value;
    private String description;

    public int getValue() {
        return value;
    }
    public String getDescription() {
        return description;
    }

    AdminStateEnum(int value, String description){
        this.value=value;
        this.description=description;
    }

    public static String valueToDESC(int value){
        for(AdminStateEnum adminStateEnum: AdminStateEnum.values()){
            if(value==adminStateEnum.getValue()){
                return adminStateEnum.getDescription();
            }
        }
        return null;
    }
}
